package com.gdc.cloud.service;

import com.gdc.cloud.entities.CommonResult;
import com.gdc.cloud.entities.Payment;
import org.springframework.stereotype.Service;


/**
 * Description: Feign 失败回调 业务实现类
 * @author: gdc
 * @date: 2022/5/29
 * @version 1.0
 */
@Service
public class PaymentFallbackService implements PaymentService{

    @Override
    public CommonResult<Payment> paymentSql(Long id) {
        return new CommonResult<>(44444,"服务降级返回，----PaymentFallbackService", new Payment(id,"errorSerial"));
    }

}